Skip to content

Tighten entry point naming requirements - #2222

Open
woodruffw wants to merge 1 commit into
mainfrom
ww/ep-name
Open

woodruffw wants to merge 1 commit into
mainfrom
ww/ep-name

Conversation

@woodruffw

Copy link
Copy Markdown
Contributor

I think this is not controversial, but we shall see 🙂

TL;DR: this ratchets down on the valid production rules for EP names, specifically in the console_scripts and gui_scripts groups. The EP spec doesn't actually know about the semantics of other groups directly, so it's not easy to declare that they should be similarly restricted.

Both PyPI already rejects EP names (in specified groups only) that run afoul of the pattern suggested here, and also rejects entries literally named . or ... pip has a slightly looser check (it checks parent directory containment). uv's check is also looser, but I plan to tighten it ASAP.

Refs: pypi/warehouse#21080

Signed-off-by: William Woodruff <william@yossarian.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant